{% extends 'encyclopedia/base.html' %}

{% block title %}确认删除 - {{ accessory.title }} - 相机百科{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-danger">
                <div class="card-header bg-danger text-white">
                    <h3 class="card-title mb-0">确认删除配件</h3>
                </div>
                <div class="card-body">
                    <p class="text-danger font-weight-bold mb-4">您确定要删除以下配件吗？此操作无法撤销。</p>
                    
                    <div class="bg-light p-3 rounded mb-4">
                        <h5>{{ accessory.title }}</h5>
                        <p class="text-muted">{{ accessory.brand }} - {{ accessory.category.name }}</p>
                    </div>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="text-center">
                            <button type="submit" class="btn btn-danger">确认删除</button>
                            <a href="{% url 'encyclopedia:accessory_detail' accessory.pk %}" class="btn btn-secondary ml-2">取消</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}